<?php
include_once '../class/remoteFileReader.class.php';

class kzRemoteInfoReader extends remoteFileReader{

	public function __construct($psnId){		
		parent::__construct("http://www.killzone.com/kz3/it_IT/mykillzone/myclan.html?name=".$psnId);	
		$this->setUserAgent("Googlebot/2.1 ( http://www.googlebot.com/bot.html) ");	
	}
}
	$myClan = new kzRemoteInfoReader('am0nTheFo0l');	
	$html=$myClan->getData();
	
	libxml_use_internal_errors(true);
    	$dom = new domDocument;
    	$dom->loadHTML($html);	
    	$dom->preserveWhiteSpace = false; 
    	$divs=$dom->getElementsByTagName('div');
    	$i=0;
    	foreach ($divs as $div){		
    		if(($i==42)||($i==72)||($i==118))
       			echo "<br>".$div->nodeValue."<br>";
       		$i++;
       	}
?>


